home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-MIPS / WATCH.H < prev   
C/C++ Source or Header  |  1999-09-17  |  915b  |  39 lines

  1. /* $Id: watch.h,v 1.3 1998/08/19 21:58:15 ralf Exp $
  2.  *
  3.  * This file is subject to the terms and conditions of the GNU General Public
  4.  * License.  See the file "COPYING" in the main directory of this archive
  5.  * for more details.
  6.  *
  7.  * Copyright (C) 1996, 1997, 1998 by Ralf Baechle
  8.  */
  9. #ifndef __ASM_WATCH_H
  10. #define __ASM_WATCH_H
  11.  
  12. #include <linux/linkage.h>
  13.  
  14. /*
  15.  * Types of reference for watch_set()
  16.  */
  17. enum wref_type {
  18.     wr_save = 1,
  19.     wr_load = 2
  20. };
  21.  
  22. extern char watch_available;
  23.  
  24. extern asmlinkage void __watch_set(unsigned long addr, enum wref_type ref);
  25. extern asmlinkage void __watch_clear(void);
  26. extern asmlinkage void __watch_reenable(void);
  27.  
  28. #define watch_set(addr, ref)                    \
  29.     if (watch_available)                    \
  30.         __watch_set(addr, ref)
  31. #define watch_clear()                        \
  32.     if (watch_available)                    \
  33.         __watch_clear()
  34. #define watch_reenable()                    \
  35.     if (watch_available)                    \
  36.         __watch_reenable()
  37.  
  38. #endif __ASM_WATCH_H
  39.